package com.其它.策略模式;


import cn.hutool.core.util.StrUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum GfTypeEnum {
    /**
     * 类型
     */
    LUOLI("luoli","萝莉"),
    YUJIE("yujie","御姐"),
    ;

    private String type;
    private String desc;

    public static String getDesc(String type){
        if(StrUtil.isBlank(type)){
            return null;
        }
        for (GfTypeEnum e : GfTypeEnum.values()) {
            if (e.getType().equals(type)) {
                return e.getDesc();
            }
        }
        return null;
    }
}
